﻿namespace Rmq.Center
{
    public class OrderRefundingPickupFailedMsg
    {
        /// <summary>
        /// 订单类型
        /// </summary>
        public OrderType OrderType { get; set; }

        /// <summary>
        /// 订单Id
        /// </summary>
        public int OrderId { get; set; }        
    }

    public class OrderRefundingPickupFailedProducer : BaseProducer<OrderRefundingPickupFailedMsg>
    {
        public OrderRefundingPickupFailedProducer()
            : base(Const.RoutingKeys.OrderRefundingPickupFailed)
        { }
    }

    public class OrderRefundingPickupFailedConsumer : BaseConsumer<OrderRefundingPickupFailedMsg>
    {
        public OrderRefundingPickupFailedConsumer()
            : base(Const.QueueNames.OrderRefundingPickupFailed, Const.RoutingKeys.OrderRefundingPickupFailed)
        { }
    }
}